//引入user的持久层
let adminDao = require("../dao/adminDao");

module.exports.insert = async function(admin){
    return await adminDao.insert(admin);
}

module.exports.findByUsernameAndPwd = async function(adminName,adminPwd){
    return await adminDao.findByUsernameAndPwd({adminName,adminPwd});
}

